{include file="head_main" /}
<body>
    <style>
        .deer-content {
            width: 500px;
        }
    
        .deer-content>.layui-form {
            margin-top: 30px;
        }
    
        .add>h1 {
            font-size: 30px;
        }
    
        .layui-form-label {
            width: 130px;
        }
    
        .layui-input-block {
            margin-left: 160px
        }
    </style>
    <div class="deer-content  add">
        <h1>添加菜单1级菜单</h1>
        <form class="layui-form">
            <div class="layui-form-item">
                <label class="layui-form-label">菜单名称</label>
                <div class="layui-input-block">
                    <input type="text" name="name" autocomplete="off" class="layui-input">
                </div>
            </div>
            <button class="submit" lay-filter="sub1" lay-submit>提交</button>
        </form>
        <h1>添加菜单2级菜单</h1>
        <form class="layui-form">
            <div class="layui-form-item">
                <label class="layui-form-label">选择一级菜单</label>
                <div class="layui-input-block">
                    <select name="interest" lay-filter="aihao">
                        <option value="0">业务中心</option>
                    </select>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">菜单名称</label>
                <div class="layui-input-block">
                    <input type="text" name="name" autocomplete="off" class="layui-input">
                </div>
            </div>
            <button class="submit" lay-filter="sub2" lay-submit>提交</button>
        </form>
        <h1>添加菜单3级菜单</h1>
        <form class="layui-form">
            <div class="layui-form-item">
                <label class="layui-form-label">选择二级菜单</label>
                <div class="layui-input-block">
                    <select name="interest" lay-filter="aihao">
                        <option value="0">一键加油</option>
                    </select>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">菜单名称</label>
                <div class="layui-input-block">
                    <input type="text" name="name" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">菜单链接模块</label>
                <div class="layui-input-block">
                    <input type="text" name="link" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">菜单链接控制器</label>
                <div class="layui-input-block">
                    <input type="text" name="link" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">菜单链接方法</label>
                <div class="layui-input-block">
                    <input type="text" name="link" autocomplete="off" class="layui-input">
                </div>
            </div>
            <button class="submit" lay-filter="sub3" lay-submit>提交</button>
        </form>
    </div>
    <!--js-->
    <aside>

        <script type="text/javascript">

            layui.use(['form', 'jquery'], function () {
                var form = layui.form;
                var $ = layui.jquery;

                //表单提交
                form.on('submit(sub1)', function (data) {
                });
                form.on('submit(sub2)', function (data) {
                });
                form.on('submit(sub3)', function (data) {
                });

            })

        </script>



    </aside>
    <!--/js-->

</body>

</html>